package com.feng.fengDUtil.dao.converter.impl;


import com.feng.fengDUtil.dao.converter.Converter;

import java.io.Reader;
import java.io.StringReader;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class ClobDefaultConverter extends Converter {
    public ClobDefaultConverter() {
    }

    public void serialize(PreparedStatement ps, int clolumnIndex) {
        Object param = this.getSerializeParam();
        if (param != null) {
            if (param instanceof String) {
                String str = (String)this.getSerializeParam();

                try {
                    ps.setCharacterStream(clolumnIndex, new StringReader(str), str.length());
                } catch (SQLException var6) {
                    var6.printStackTrace();
                }

            }
        }
    }

    public Object deSerialize(Reader dbValue) {
        return null;
    }
}
